package com.dtguai.web.web.sys.dao;

import com.dtguai.web.base.mapper.BaseMapper;
import com.dtguai.web.web.sys.model.SysDefRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: guoLiang
 * @date：2018-12-11 02:43:06
 * @mail 123086461@qq.com
 */
public interface SysDefRoleDao extends BaseMapper<SysDefRole> {

    /**
     * 查询用户创建的角色列表
     *
     * @param id id
     * @return List<Integer>
     */
    @Select("SELECT id FROM sys_def_role WHERE create_admin_id = #{id}")
    List<Integer> findRoleIdList(@Param("id") Integer id);

}